//
//  UIColor+CYColorHex.h
//  CYBaseKit
//
//  Created by admin on 2022/7/28.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (CYColorHex)
/// HexString -> Color (Default alpha: 1.0)
+ (UIColor *)cy_colorFromHex:(NSString *)hexString;
/// HexString + Alpha -> Color
+ (UIColor *)cy_colorFromHex:(NSString *)hexString andAlpha:(CGFloat)alpha;
/// color -> HexString
+ (NSString *)cy_hexFromColor:(UIColor *)color;
/// rgba 颜色数组
+ (NSArray *)cy_RGBA_ArrayFromColor:(UIColor *)color;
/// HS BA 颜色数组
+ (NSArray *)cy_HSBA_ArrayFromColor:(UIColor *)color;

@end

NS_ASSUME_NONNULL_END
